]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Use better window check option in existing code
authorSundeep Mediratta <smedius@gmail.com>
Sun, 23 Jun 2024 19:12:34 +0000 (15:12 -0400)
committerSundeep Mediratta <smedius@gmail.com>
Sun, 23 Jun 2024 19:32:28 +0000 (15:32 -0400)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3386>

js/ui/workspace.js

index 147b843ded6325f72bdf612e674589aa14263366..09fe3abdb4cac4aacbfeadc0c7c938bbe7cfc71b 100644 (file)
@@ -1202,7 +1202,7 @@ class Workspace extends St.Widget {
 
         // We might have the window in our list already if it was on all workspaces and
         // now was moved to this workspace
-        if (this._lookupIndex(metaWin) !== -1)
+        if (this.containsMetaWindow(metaWin))
             return;
 
         if (!this._isMyWindow(metaWin))